package com.example.demospringboot.batch;

import org.springframework.batch.item.validator.ValidationException;
import org.springframework.batch.item.validator.Validator;

import com.alibaba.fastjson.JSON;

public class BeanValidator<T> implements Validator<T>{

	@Override
	public void validate(T value) throws ValidationException {
		System.out.println("数据校验处理"+JSON.toJSONString(value));
	}

}
